<template>
    <q-form>     <q-input v-model="test1" />   </q-form>
</template>

<script lang="ts" setup>
import { computed, ref } from 'vue';

const ref1 = ref(null);

const test1: any = computed({
  set(value) {
    emit('update:test', value);
  },
  get() {
    console.log(props.test);

    return props.test;
  },
});

const emit = defineEmits(['update:test']);

const props = withDefaults(
  defineProps<{
    test: string;
  }>(),
  {
    test: '',
  }
);
</script>

<style scoped></style>
